﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Othello_Game
{
    /// <summary>
    /// A normalize attribute implementing IAttributeNormalizedValues interface.
    /// Returns a score indicating the possible moves to play.
    /// </summary>
    public class PossibleMovesNumAttribute : IAttributeNormalizedValues
    {
        public double GetAttributeValues(ActionList actionList)
        {
            return (double)(GeneralConsts.Instance.TotalBoardPlaces - actionList.BoardState.WhatCanIDo.Count) / (double) GeneralConsts.Instance.TotalBoardPlaces;
        }
    }
}
